package cn.edu.jmu.oelp.service;

import cn.edu.jmu.oelp.pojo.Entity;

import java.util.List;

/**
 * @author damao
 */
public interface EntityNeo4jService {

    Entity addEntity(Entity entity);

    void delEntity(Long entityId);

    void updateEntity(Entity entity);

    List<Entity> findByArticleId(int id);

    List<Entity> findByArticleIdAndParagraphsId(int articleId, int paraId);

    List<Entity> findByArticleIdAndParagraphsIdAndUserId(int articleId, int paraId, int userId);

    Entity findById(long id);

    Entity findByEntityId(long entityId);

    Entity findByContent(String content);

    Entity findByArticleIdAndParagraphsIdAndContentAndUserId(int articleId, int paraId, String content, int userId);

    List<Entity> findByType(String type);

    List<Entity> findAll();
}
